package com.mapper.auto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.auto.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Mapper
@Repository
public interface StudentMapper extends BaseMapper<Student> {
    Student updateStu(Integer id);

    Student restoreStu(Integer id);

    void relDeleteStu(Integer id);

    Long selectIdByUserId(@Param("userId") Long userId);

    Student selectByUserId(@Param("userId") Long userId);
}
